from django.urls import path

from rest_framework.routers import DefaultRouter
# from .views import ClassesViewSet
from .views import *

urlpatterns = [
    path('classes/<pk>/member/', ClassesMemberViewSet.as_view({'post': 'add_member'})),
]

router = DefaultRouter()  # 实例一个默认路由器对象
router.register('classes', ClassesViewSet)
urlpatterns += router.urls